package com.thyc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.thyc.dao.SourceDataDao;
import com.thyc.entity.LimitValue;
import com.thyc.entity.SourceData;
import com.thyc.service.SourceDataService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * 源数据表(SourceData)表服务实现类
 *
 * @author moer
 * @since 2021-01-19 15:27:21
 */
@Service
public class SourceDataServiceImpl extends ServiceImpl<SourceDataDao, SourceData> implements SourceDataService {

    @Override
    public String findLastTimeFlip() {
        return getBaseMapper().findLastTimeFlip();
    }

    @Override
    public BigDecimal findLastTimeStrainGauge(String modelNum, String passageway) {
        return getBaseMapper().findLastTimeStrainGauge(modelNum, passageway);
    }

    @Override
    public void truncate() {
        getBaseMapper().truncate();
    }

    @Override
    public void backUp(String today,String sensorModel) {
        getBaseMapper().backUp(today,sensorModel);
    }

    @Override
    public List<LimitValue> selectMaxAndMinValue() {
        return getBaseMapper().selectMaxAndMinValue();
    }


}